package org.lds.ers.server.model;

import java.util.Date;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

//代表一個系統管理者
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class SysAdmin {
    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Long id;

    @Persistent
    private String userID; //使用者名稱

    @Persistent
    private String remark;  //備註

    @Persistent
    private Date lastUpdate;	//最後修改時間
    
    public SysAdmin(String userID, String remark, Date lastUpdate ) {
        this.userID = userID;
        this.remark = remark;
        this.lastUpdate = lastUpdate;
    }

    public Long getId() {
        return id;
    }
    
    public String getUserID()
    {
    	return this.userID ;
    }
    
    public String getRemark()
    {
    	return this.remark ;
    }
    
    public Date getLastUpdate()
    {
    	return this.lastUpdate ;
    }
    
    public void setID(Long id)
    {
    	this.id = id ;
    }
    
    public void setUserID(String userID)
    {
    	this.userID = userID ;
    }
    
    public void setRemark(String remark)
    {
    	this.remark = remark;
    }
    
    public void setLastUpdate(Date lastUpdate)
    {
    	this.lastUpdate = lastUpdate ;
    }
}
